import { createApp } from 'vue'
import Router from './router'
import Store from './store'
import App from './App.vue'
import { permission } from "./directives/permission";
// import './mockjs'

const app = createApp(App)
// 自定义警告处理函数
app.config.warnHandler = (msg, vm, trace) => {
    // 检查警告消息是否包含 "Extraneous non-props attributes"
    if (msg.includes('Extraneous non-props attributes')) {
      // 如果是，忽略该警告
      return;
    }
    // 否则，继续打印其他警告
    console.warn(msg, vm, trace);
  };
app.use(Store);
app.use(Router);

app.directive("permission",permission);
app.mount('#app');
